/*
 * PropertiesManager.cpp
 *
 *  Created on: Aug 5, 2009
 *      Author: ramesh
 */

#include "PropertiesManager.h"

using namespace SymphonyAST;


//mapping by hand - unfortunately C++ enum are really limited
void PropertiesManager::add(string property) {
	if (property == "private") {
		properties.insert(PRIVATE);
	} else if (property == "public") {
		properties.insert(PUBLIC);
	}
}

bool PropertiesManager::get(string property) {
	if (property == "private") {
		return (properties.find(PRIVATE) != properties.end());
	} else if (property == "public") {
		return (properties.find(PUBLIC) != properties.end());
	} else {
		return false;
	}
}
